package com.mes.biz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 生产单对象 biz_order
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
@Data
public class BizProductionOrder extends BaseEntity<BizProductionOrder>
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    @FieldRemark(name = "订单编号",field = "orderNumber")
    private String orderCode;

    @FieldRemark(name = "销售单ID",field = "productOrderId")
    private String productOrderId;

    @FieldRemark(name = "工序进度",field = "processProgress")
    private BigDecimal processProgress;

    /** 客户 */
    @FieldRemark(name = "产品ID",field = "productId")
    private String productId;

    @FieldRemark(name = "产品数量",field = "productNumber")
    private BigDecimal productNumber;

    @FieldRemark(name = "产品位置",field = "productPositon")
    private String productPositon;

    /** 租户id */
    private String tenantId;

    @FieldRemark(name = "产品编号",field = "productCode")
    private String productCode;

    @FieldRemark(name = "品牌",field = "brand")
    private String brand;

    @FieldRemark(name = "颜色",field = "color")
    private String color;

    @FieldRemark(name = "规格",field = "spec")
    private String spec;

    @FieldRemark(name = "工序计划id",field = "planId")
    private String planId;

    @FieldRemark(name = "工序id",field = "planProcessId")
    private String planProcessId;

    @FieldRemark(name = "单位",field = "unit")
    private String unit;
    @FieldRemark(name = "型号",field = "model")
    private String model;


    private List<BizOrder> bizOrders;

    private String orderNumber;
}
